<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">
    <h:head>
        <title>Compra Credito</title>
    </h:head>
<h:outputLabel for="CreditoOpciones" value="Valor:" />
            <h:selectOneMenu id="CreditoOpciones" value="#{selectorView.text3}" required="true" label="Text 3">
                <f:selectItem itemLabel="Select One" itemValue="" noSelectionOption="true" />
                <f:selectItem itemLabel="5" itemValue="1" />
                <f:selectItem itemLabel="10" itemValue="2" />
                <f:selectItem itemLabel="20" itemValue="3" />
                <f:selectItem itemLabel="50" itemValue="4" />
                <f:selectItem itemLabel="100" itemValue="5" />
            </h:selectOneMenu>
            <p:message for="CreditoOpciones" />



<h:form>           
    <p:growl id="message" showDetail="true" />
 
    <p:commandButton value="Comprar" actionListener="#{dialogView.destroyWorld}" update="message">
        <p:confirm header="Confirmation" message="¿Esta Seguro?" icon="ui-icon-alert" />
    </p:commandButton>
 
    <p:confirmDialog global="true" showEffect="fade" hideEffect="explode">
        <p:commandButton value="Si" type="button" styleClass="ui-confirmdialog-yes" icon="ui-icon-check" />
        <p:commandButton value="No" type="button" styleClass="ui-confirmdialog-no" icon="ui-icon-close" />
    </p:confirmDialog>
</h:form>

</html>